package net.steam.easyjoboa.dao.impl;

import java.util.List;
import net.steam.easyjoboa.dao.impl.BaseDaoSupport;
import net.steam.easyjoboa.dao.ProclaimDao;
import net.steam.easyjoboa.entity.Employee;
import net.steam.easyjoboa.entity.Proclaim;
import net.steam.easyjoboa.entity.Roles;

public class ProclaimDaoImpl extends BaseDaoSupport<Integer, Proclaim> implements ProclaimDao {

	@SuppressWarnings("unchecked")
	public List<Roles> findByEntity(Employee employee){
		String hql=String.format("from Roles r where r.employees='%s'",employee);
		return getHibernateTemplate().find(hql);
		
	}
}
